package common.server.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 内部响应报文
 * 
 * @author Administrator
 * @version [版本号, 2017/11/14 0014]
 * @see [相关类/方法]
 * @since [产品/模块版本]
 */
@ApiModel(value = "InsideResponseMessage", description = "统一响应封装对象,所有响应抽象参数对象")
public class InsideResponseMessage<T> extends Message {

	/**
	 * 返回码
	 */
	@ApiModelProperty(value = "响应码")
	private String retCode;

	/**
	 * 返回描述
	 */
	@ApiModelProperty(value = "响应描述")
	private String retDesc;

	/**
	 * 返回数据
	 */
	@ApiModelProperty(value = "响应返回数据")
	private T rspBody;

	public String getRetCode() {
		return retCode;
	}

	public InsideResponseMessage setRetCode(String retCode) {
		this.retCode = retCode;
		return this;
	}

	public String getRetDesc() {
		return retDesc;
	}

	public InsideResponseMessage setRetDesc(String retDesc) {
		this.retDesc = retDesc;
		return this;
	}

	public T getRspBody() {
		return rspBody;
	}

	public InsideResponseMessage setRspBody(T rspBody) {
		this.rspBody = rspBody;
		return this;
	}

	@Override
	public String toString() {
		return "InsideResponseMessage{" +
				"retCode='" + retCode + '\'' +
				", retDesc='" + retDesc + '\'' +
				", rspBody=" + rspBody +
				'}';
	}
}
